using System;
using System.Web.Security;
using System.Web.UI;

namespace ASPNETVN.PORTAL.Admin
{
    public partial class LogOff : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();

            // Invalidate roles token
            Response.Cookies["portalroles"].Value = null;
            Response.Cookies["portalroles"].Expires = new DateTime(1999, 10, 12);
            Response.Cookies["portalroles"].Path = "/";

            Response.Redirect("~/Default.aspx");
        }
    }
}